using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using LHS.Core.TableInfo;
using LHS.Core.CaseRecord.Classes;

namespace LHS.Win.SetUpTienCanForm.Forms
{
    public partial class frmKetQuaThongKe : DevExpress.XtraEditors.XtraForm
    {
        public frmKetQuaThongKe(DataTable dtKetQuaThongKe)
        {
            InitializeComponent();
            this.gdKetQuaThongKe.DataSource = dtKetQuaThongKe;
        }

        private void gdKetQuaThongKe_Load(object sender, EventArgs e)
        {
            gcDiaChi.FieldName = InfoPatients.PATADDRESS;
            gcDiDong.FieldName = InfoPatients.PATMOBILE;
            gcDTNha.FieldName = InfoPatients.PATTEL;
            gcGioiTinh.FieldName = InfoPatients.PATSEX;
            gcHoTen.FieldName = InfoPatients.PATNAME;
            gcID.FieldName = InfoPatients.PATID;
            gcLyDoPT.FieldName = clsDynamicTable.Surgical_Reason;
            gcNgayPT.FieldName = clsDynamicTable.Surgical_Date;
            gcNgheNghiep.FieldName = InfoPatients.PATOCCUPATION;
            gcTuoi.FieldName = InfoPatients.PATAGE;  
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            base.Close();
        }        
    }
}